
import { RouteRecordRaw } from 'vue-router'
import { Child } from '@/router/modular/index'

const routes: Array<RouteRecordRaw> = [
  {
    path: '/',
    name: 'default',
    component: () => import('@/views/login/index.vue'),
    meta: {
      title: '登录'
    }
  }, {
    path: '/login',
    name: 'login',
    component: () => import('@/views/login/index.vue'),
    meta: {
      title: '登录'
    }
  },
  {
    path:'/index',
    name:'layout',
    redirect:'/index/index',
    component:()=> import('@/views/layout/index.vue'),
    meta:{
      title:'布局页'
    },
    children:Child
  }
]




export default routes;